load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test")

package(default_visibility = [
    "//rs/crypto:__subpackages__",
    "//rs/interfaces:__subpackages__",
])

DEPENDENCIES = [
    # Keep sorted.
    "//rs/crypto/internal/crypto_lib/basic_sig/ecdsa_secp256k1",
    "//rs/crypto/internal/crypto_lib/basic_sig/ecdsa_secp256r1",
    "//rs/crypto/internal/crypto_lib/basic_sig/ed25519",
    "//rs/crypto/internal/crypto_lib/basic_sig/rsa_pkcs1",
    "//rs/crypto/internal/crypto_lib/multi_sig/bls12_381",
    "//rs/crypto/internal/crypto_lib/seed",
    "//rs/crypto/internal/crypto_lib/threshold_sig/bls12_381",
    "//rs/crypto/internal/crypto_service_provider",
    "//rs/protobuf",
    "//rs/types/types",
    "@crate_index//:hex",
    "@crate_index//:proptest",
    "@crate_index//:strum",
]

DEV_DEPENDENCIES = []

MACRO_DEPENDENCIES = [
    # Keep sorted.
    "@crate_index//:paste",
]

DEV_MACRO_DEPENDENCIES = []

ALIASES = {}

rust_library(
    name = "csp_proptest_utils",
    testonly = True,
    srcs = glob(["src/**/*.rs"]),
    aliases = ALIASES,
    crate_name = "ic_crypto_internal_csp_proptest_utils",
    proc_macro_deps = MACRO_DEPENDENCIES,
    deps = DEPENDENCIES,
)

rust_test(
    name = "csp_proptest_utils_test",
    crate = ":csp_proptest_utils",
    proc_macro_deps = DEV_MACRO_DEPENDENCIES,
    deps = DEV_DEPENDENCIES,
)
